<template>
  <div>
    <el-form
      :model="meetingForm"
      :rules="rules"
      ref="userForm"
    >
      <el-form-item prop="meetingID">
        <el-input
          v-model="meetingForm.meetingID"
          placeholder="会议室号"
          clearable
        ></el-input>
      </el-form-item>
      <el-form-item prop="nickname">
        <el-input
          v-model="meetingForm.nickname"
          placeholder="昵称"
          clearable
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button
          class="g-form"
          type="primary"
          @click="handleEnterMeeting">
          进入会议室
        </el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import Vue from 'vue'
export default Vue.extend({
  name: 'MeetingForm',
  data () {
    return {
      meetingForm: {
        meetingID: '',
        nickname: ''
      },
      rules: {
        username: [
          { required: true, message: '请输入会议号', trigger: 'blur' }
        ],
        password: [
          { required: true, message: '请输入昵称', trigger: 'blur' }
        ]
      }
    }
  },
  methods: {
    handleEnterMeeting () {
      this.$message.info('功能开发中，敬请期待。。。')
    }
  }
})
</script>

<style lang="scss" scoped>
</style>
